package priv.pront.code.lanqiao.team.comp.mati_2;

import java.util.Scanner;

/**
 * @Description:
 * @Author: pront
 * @Time:2023-11-02 19:43
 */
public class P5015_标题统计 {

    static String n;
    static int res;
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        n = scanner.nextLine().trim().replaceAll(" ", "");
        String[] ans = n.split("/n");
        for (String an : ans) {
            res += an.length();
        }
        System.out.println(res);
    }
}
